package com.thirteenClassics.async;

import org.springframework.stereotype.Component;

import javax.annotation.PreDestroy;

@Component
public class AppShutdownListener {
    @PreDestroy
    public void onShutdown() {
        ThreadPoolManager.shutdown(); // 关闭线程池
        System.out.println("线程池已关闭");
    }
}
